#include <stdio.h>

int main()
{
	int arr[10] = {9,6,1,3,2,0,5,7,8,4};
	int max=arr[0],two_max=arr[1];

	for(int i=1; i<10; i++)
	{
		if(arr[i] > max)
		{
			two_max = max;
			max = arr[i];
		}
		else if(arr[i] > two_max)
		{
			two_max = arr[i];
		}
	}

	printf("%d\n",two_max);
}
